import $axios from '../utils/request';                   //8

//验证手机是否被注册
export function docheckphone(data) {
   return $axios.post("user/docheckphone", data)
}

//发送验证码
export function dosendmsgcode(data) {
   return $axios.post("user/dosendmsgcode", data)
}

//验证验证码
export function docheckcode(data) {
   return $axios.post("user/docheckcode", data)
}

// 注册
export function dofinishregister(data) {
   return $axios.post("user/dofinishregister", data)
}


//登录
export function doLogin(data) {
   return $axios.post("user/login", data)
}

//修改用户名
export function setUser(params) {
   return $axios.get("user/bindusername", { params })
}

//获取用户名
export function getUser(params) {
   return $axios.get("user/info", { params })
}

export function setPassword(params) {
   return $axios.get("user/updatePassword", { params })
}